package com.xiyu.service.errorCode.material;

import com.xiyu.service.framework.exception.ErrorCode;

/**
* purchase 错误码枚举类
*
* purchase 采购单管理，使用 1009003000段
*/
public interface PurchaseErrorCode {
    Integer ERROR_CODE_START_CODE = 1009003000;

    ErrorCode MATERIAL_PURCHASE_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE, "采购单不存在");
    ErrorCode MATERIAL_PURCHASE_DETAIL_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 1, "物资采购明细不存在");
    ErrorCode MATERIAL_PURCHASE_STATUS_NOT_PENDING_REVIEW = new ErrorCode(ERROR_CODE_START_CODE + 2, "采购单状态不是待审核");
    ErrorCode MATERIAL_PURCHASE_STATUS_NOT_PENDING_IN = new ErrorCode(ERROR_CODE_START_CODE + 3, "采购单状态不是待入库");
    ErrorCode MATERIAL_PURCHASE_STATUS_NOT_PARTIAL_IN = new ErrorCode(ERROR_CODE_START_CODE + 4, "采购单状态不是部分入库");
    ErrorCode MATERIAL_PURCHASE_DETAIL_NOT_EMPTY = new ErrorCode(ERROR_CODE_START_CODE + 5, "采购单明细至少有一条");
}